<script setup>
const emit = defineEmits(['update:modelValue'])

const props = defineProps({
  modelValue: Number,
})

const handleClick = () => {
  emit('update:modelValue', props.modelValue + 1)
}
</script>

<template>
  <div>
    <div>{{ modelValue }}</div>
    <button @click="handleClick">click</button>
  </div>
</template>
